//
//  DDChargeFootView.m
//  DingDongZP
//
//  Created by weily on 16/5/11.
//  Copyright © 2016年 iyhjiang.com. All rights reserved.
//

#import "DDChargeFootView.h"

@implementation DDChargeFootView
{
    IBOutlet UILabel *_phoneChargeLab;
    IBOutlet UIButton *_chargeBtn;
}

- (void)awakeFromNib
{
    __weak typeof(self) weakSelf = self;
    _phoneChargeLab.userInteractionEnabled = YES;
    [_phoneChargeLab bk_whenTapped:^{
        if (weakSelf.callbackPhoneCharge) {
            weakSelf.callbackPhoneCharge();
        }
    }];
    
    [_chargeBtn setBackgroundColor:COLOR_FONT_MAIN_GREEN];
}

- (IBAction)actionCharge:(id)sender
{
    if (self.callbackCharge) {
        self.callbackCharge();
    }
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
